package com._58city.spark.app.dao;

import java.util.HashSet;
import java.util.Set;

/**
 * @author lihao
 * 流量在Spark计算过程中的存储数据
 */
public class TrackValue {
	
	private long pv;
	
	private long listPv;
	
	private long vpPv;
	
	private Set<String> cookies = new HashSet<String>();

	public TrackValue() {
		super();
	}
	
	public TrackValue(long pv, long listPv, long vpPv, Set<String> cookies) {
		super();
		this.pv = pv;
		this.listPv = listPv;
		this.vpPv = vpPv;
		this.cookies = cookies;
	}

	public long getPv() {
		return pv;
	}

	public void setPv(long pv) {
		this.pv = pv;
	}

	public long getListPv() {
		return listPv;
	}

	public void setListPv(long listPv) {
		this.listPv = listPv;
	}

	public long getVpPv() {
		return vpPv;
	}

	public void setVpPv(long vpPv) {
		this.vpPv = vpPv;
	}

	public Set<String> getCookies() {
		return cookies;
	}

	public void setCookies(Set<String> cookies) {
		this.cookies = cookies;
	}

	@Override
	public String toString() {
		return "TrackValue [pv=" + pv + ", listPv=" + listPv + ", vpPv=" + vpPv
				+ ", " + (cookies != null ? "cookies=" + cookies : "") + "]";
	}

}
